package com.gdcvi.scan;

/**
 * 人和电脑猜拳
 */
public class Test {
    public static void main(String[] args){
        Hand.MAX_CODE = 4;
        Player player1 = new Person();
        Player player2 = new Computer();
        player1.setName("张三");
        player2.setName("电脑高手");
        player1 =new 出拳校验器(new InputReminderNO2(player1));
        player2 = new OutputReminder(player2);

        Hand hand1  =  player1.chuQuan();
        Hand hand2  =  player2.chuQuan();
        int result = hand1.equals(hand2);
        System.out.println(result);
        测试.test(result,player1,player2);
        }
    }
